package cn.doitedu.rpc

//Worker向Master发送注册的消息
case class RegisterWorker(
                           workerId: String,
                           memory: Int,
                           cores: Int
                         )

//Master返回给Worker的消息
case object RegisteredWorker

//Worker自己发送自己的消息
case object SendHeartbeat

//Worker向Master发送的心跳消息
case class Heartbeat(workerId: String)

//Master自己发送给自己的消息
case object CheckHeartbeat

